package pir.hillchen.std.mybatis.txmapper.config.mybaits;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import pir.hillchen.std.mybatis.txmapper.config.datasource.DataSourceConfig;

import java.util.List;

/**
 * Created by hillchen on 2017/9/28 0028.
 */
@ConfigurationProperties(prefix = MyBatisConfig.PRI_MYBATIS_CONFIG_PREFIX)
@Component
public class MyBatisConfig {
    public static final String PRI_MYBATIS_CONFIG_PREFIX = "pri.mybatis";
    /*private DataSourceConfig datasource;

    public DataSourceConfig getDatasource() {
        return datasource;
    }

    public void setDatasource(DataSourceConfig datasource) {
        this.datasource = datasource;
    }*/

    private List<DataSourceConfig> datasource;

    public List<DataSourceConfig> getDatasource() {
        return datasource;
    }

    public void setDatasource(List<DataSourceConfig> datasource) {
        this.datasource = datasource;
    }
}
